<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/print.jsp" %>

<html>
  <head>
    <title>退费打印</title>
  </head>
  
  <body>
    <center>
    	<s:form name="frm" id="frm" method="post" action="" namespace="">
    		<div class="onlyShow">
    		<jsp:include page="/jsp/outward/business/common/menuLink.jsp">
    			<jsp:param name="menuLink" value="[{'name':'退费管理'},{'name':'收据打印'}]"/>
    			<jsp:param name="width" value="40%"/>
    		</jsp:include>
    		</div>
    		
    		
    		<table id="baseTb" style="width:18cm;height:7cm;font-size:14px;" cellspacing="1" cellpadding="3" border="0" class="onlyShow">
    			<tr bgcolor="#FFFFFF">
    				<td align="center" class="label" colspan="6">
    					<font style="font-size:19px; font-weight:bold;">东伶珑幼教集团</font>
    				</td>
    			</tr>
    			<tr bgcolor="#FFFFFF">
    				<td align="center" class="label" colspan="6">
    					退费专用收据
    				</td>
    			</tr>
    			<tr bgcolor="#FFFFFF">
    				<td width="50%" align="left" class="label" height="22px" colspan="3">
    					<s:property value="refund.kindergarten.kgName"/>
    				</td>
    				<td width="50%" align="left" class="label" colspan="3">
    					退费日期：<s:date name="refund.refundDate" format="yyyy-MM-dd"/>
    				</td>
    			</tr>
    			<tr bgcolor="#FFFFFF">
    				<td width="35%" align="left" class="label" height="22px" colspan="2">
    					学童编号：<s:property value="refund.child.childNum"/>
    				</td>
    				<td width="38%" align="left" class="label" colspan="2">
    					姓名：<s:property value="refund.child.childName"/>
    				</td>
    				<td width="27%" align="left" class="label" colspan="2">
    					班级：<s:property value="refund.cla.className"/>
    				</td>
    			</tr>
    			<tr>
    				<td colspan="6">
    					<table width="100%" cellpadding="3" cellspacing="0" class="printTable">
    						<tr>
    							<s:iterator value="list">
    							<td align="center" width="<s:property value='tdWidth' />%">
    								<s:property value="indexName"/>(元)
    							</td>
    							</s:iterator>
    						</tr>
    						<tr>
    							<s:iterator value="list">
    							<td align="center">
    								<s:property value="intAmount"/>
    							</td>
    							</s:iterator>
    						</tr>
    						<tr>
    							<td align="left" colspan="<s:property value='tdColspan' />">
    								合计：<s:property value='intTotalAmount' /> 元
    							</td>
    						</tr>
    						<tr>
    							<td align="left" colspan="<s:property value='tdColspan' />">
    								备注：<s:property value='refund.remark' />
    							</td>
    						</tr>
	    				</table>
    				</td>
    			</tr>
    			<tr>
	    			<td colspan="3" align="left">退费人：</td>
	    			<td colspan="3" align="left">退费单位(盖章)：</td>
    			</tr>
    		</table>
    		
    		<table width="100%" cellspacing="0" class="onlyShow">
    			<tr>
    				<td align="center" valign="bottom" height="30">
    					<input onclick="printThisBase()" type="button" value="直接打印" />
					    <input onclick="operateThisBase()" type="button" value="打印设置" />
					    <input onclick="viewThisBase()" type="button" value="打印预览" />
    				</td>
    			</tr>
    		</table>
    		
    	</s:form>
    	
    	<jsp:include page="/jsp/login/business/common/printObject.jsp"></jsp:include>
    </center>
    
    <script type="text/javascript">
    $(function(){
    	printInit(true, 6, 6, 6, 6);
    });
    
    function printThisBase()
    {
    	var baseTb = $('#baseTb');
    	baseTb.removeClass('onlyShow');
    	doPrint();
    	baseTb.addClass('onlyShow');
    }
    function operateThisBase()
    {
    	doOperate();
    }
    function viewThisBase()
    {
    	var baseTb = $('#baseTb');
    	baseTb.removeClass('onlyShow');
    	doView();
    	baseTb.addClass('onlyShow');
    }
    
    </script>
  </body>
</html>
